<style>
body {
	background: #fff;
}
.fui-content{background:#fff}
.fui-icon-group .fui-icon-col {
    margin: 5px 0;
}
.fe-floatback a {
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    opacity: 0.6;
}
.fe-mod-14 {
    min-height: 174px;
	padding-bottom: 5.8rem;
	background: #fff;
}

.fe-mod-14 a , .fe-mod-14 a:hover {
    color: inherit;
    text-decoration: none;
}

.fe-mod-14 img {
    width: 100%;
    display: block;
}

.fe-mod-14-menu {
    height: 45px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0,0,0,0.4);
    color: #fff;
}

.fe-mod-14-menu a {
    color: inherit;
}

.fe-mod-14-nav {
    height: 40px;
    width: 25%;
    padding-top: 5px;
    float: left;
    text-align: center;
    font-size: 12px;
}

.fe-mod-14-nav i {
    font-size: 18px;
}

.fe-mod-14-nav-on {
    height: 45px;
    border-bottom: 3px solid #dd2322;
}

.fe-mod-14-shopname {
    height: 24px;
    width: 100%;
    position: absolute;
    top: 7rem;
    left: 0px;
}
.fe-mod-14-name {
    height: 1.4rem;
    width: auto;
    line-height: 1.4rem;
    margin: auto;
    display: table;
    font-size:0.7rem;
    padding: 0px 15px;
}
.fe-mod-14-map {
    width: auto;
    background: rgba(0,0,0,0.2);
    margin: auto;
    display: table;
    border-radius: 1.4rem;
    font-size:0.6rem;
    color: #fff;
    padding: 0px 0.7rem;
}

.fe-mod-14-shoplogo {
    height: 80px;
    width: 80px;
    padding: 4px;
    margin-left: -40px;
    position: absolute;
    top: 3.6rem;
    left: 50%;
}
.fe-mod-14-shoplogo-img {
    height: 70px;
    width: 70px;
    padding: 4px;
    border-radius: 10px;
    margin: auto;
}
.fe-mod-14-shoplogo-img .vip {
	background: #09ba07 none repeat scroll 0 0;
    color: #fff;
    position: absolute;
    top: 2.6rem;
	margin-left:2.2rem;
	height: 0.85rem;
    width: 0.85rem;
    vertical-align: top;
    z-index: 100;
	line-height:1.2;
	text-align:center;
	border: 1.3px solid #fff;
	border-radius:0.85rem;
}
.fe-mod-14-shoplogo-img .set {
    position: absolute;
    top: 0.1rem;
	margin-left:2.2rem;
	height: 0.85rem;
    width: 0.85rem;
    vertical-align: top;
    z-index: 100;
	line-height:1.2;
	text-align:center;
}
.fe-mod-14-shoplogo-img img {
    height: 60px;
    width: 60px;
    border-radius: 10px;
}
.fe-mod-14-shopinfo {
	position: absolute;top:10.2rem;left:2.5%;width:95%;padding: 12px 0 10px;background-color: #fff;border-radius: 10px;border: 1px solid #f2f2f2;
}
.fe-mod-14-shopinfo .desc {
	padding:0 0.8rem;
	font-size:0.6rem;
}
.fe-mod-14-shopinfo .data {
	padding:0 0.8rem;
	margin-top:0.6rem;
	font-size:0.55rem;
	color:#999
}
.post-card .image img { border-radius:2.2rem;}
.btn {
	border-radius: 1rem;
}
</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op=='main'">
	<div class="fui-content" style="margin-top:0">
		<div class="fui-tab fui-tab-danger">
			<a ng-class="{'external active':pagedata.params.status == 0}" href="javascript:" ng-click="pagedata.params.status=0;tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);">待提交</a>			
			<a ng-class="{'external active':pagedata.params.status == 1}" href="javascript:" ng-click="pagedata.params.status=1;tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);">待审核</a>
			<a ng-class="{'external active':pagedata.params.status == 2}" href="javascript:" ng-click="pagedata.params.status=2;tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);">已完成</a>
			<a ng-class="{'external active':pagedata.params.status == 3}" href="javascript:" ng-click="pagedata.params.status=3;tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);">不合格</a>
			<a ng-class="{'external active':pagedata.params.status == 4}" href="javascript:" ng-click="pagedata.params.status=4;tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);">已过期</a>
		</div>
		<div ng-if="pagedata.list.length<1" class="fui-card fui-card-list fui-card-full post-card">
			<div class="fui-card-content" style="text-align:center;margin-top:1rem">
				<b class="fui-card-content-title">
					还没有任何订单哦！
				</b>
			</div>
		</div>
		<div class="fui-card fui-card-list fui-card-full post-card" ng-repeat="row in pagedata.list">
			<a class='fui-card-info' style="margin-bottom:0.3rem" ng-click="access_json('/item//id='+row.id)" >
				<div class='image'>
					<img ng-src="{{tomedia(row.member.avatar) || '../core/resource/images/nopic.jpg'}}"  />
				</div>
				<div class="text">
					<span class="title" style="height:1rem;color:#f60">{{row.member.nickname || '匿名'}}</span>
					<span class="subtitle" style="font-size:0.6rem;padding-top:0.1rem">{{row.createtime || '1天前'}} 接单</span> 
					<span class="red">({{row.statustitle}})</span>
				</div>
			</a>
			<div class="fui-card-content" style="margin-left:2.5rem;" ng-click="access_json('/item//id='+row.id)" >
				<b class="fui-card-content-title">
					{{pagedata.renwu.title || '标题为空'}} <span class="price">￥{{row.fee ||'0.00'}}</span>
				</b>			
			</div>
			<div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 1" class="btn btn-sm btn-default-o r-f" href="javascript:;" ng-click="access_json('/renwu.itemorder/detail/id='+row.id)">审核订单</div>
					<div class="btn btn-sm btn-default-o r-f" href="javascript:;" ng-click="access_json('/renwu.itemorder/detail/id='+row.id)">订单详情</div>
				</span>
            </div>
		</div>
	</div>
</div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">订单详情</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page' style="margin-top:2.5rem">
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.order.member.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
					<div class="title" style="font-size:0.65rem">昵称：{{pagedata.order.member.nickname}}</div>				
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="weui_cells">
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>任务名称</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.renwu.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>任务奖励</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.fee}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>任务限时</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.renwu.hours}}</div>
			</div>
			<div ng-if="pagedata.order.createtime" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>接单时间</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.createtime}}</div>
			</div>
			<div ng-if="pagedata.order.subtime" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>提交时间</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.subtime}}</div>
			</div>
			<div ng-if="pagedata.order.successtime" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>完成时间</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.successtime}}</div>
			</div>
			<div class="weui_cells_title">提交内容</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>{{pagedata.order.subdata.title}}</span>
					</div>
					 <a class="fui-list-media">
						<img ng-repeat="p in pagedata.order.subdata.images" class="round" ng-src="{{tomedia(p) || '../core/resource/images/nopic.jpg'}}" />
					</a>
			</div>
			<div ng-if="pagedata.order.status==1" class="weui_btn_area">
				<a class="weui_btn weui_btn_primary" style="background:#00c568;" ng-click="pagedata.showpost=true">点击审核</a>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showpost" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showpost=false"></i>
			<div class='fui-content' style="background:#fff;width:auto;padding:0.5rem">
				<div class="weui_cells" style="margin-top:8rpx">
					<div class="title bold" style="padding-bottom:0.5rem">提交审核 / <small>ADD</small></div>
					<div class="weui_cells_title">选择审核状态</div>
					<div class="weui_cells weui_cells_radio2">
					<label ng-click="pagedata.post.status=3" class="weui_cell weui_check_label dashed">
							<div class="weui_cell_bd weui_cell_primary">
								<span style="float:left;width:100%">不合格</span>
							</div>
							<div class="weui_cell_ft">
								<input type="radio" class="weui_check" name="radio1">
								<span class="weui_icon_checked"></span>
							</div>
					</label>
					<label ng-click="pagedata.post.status=2" class="weui_cell weui_check_label dashed">
							<div class="weui_cell_bd weui_cell_primary">
								<span style="float:left;width:100%">合格</span>
							</div>
							<div class="weui_cell_ft">
								<input type="radio" class="weui_check" name="radio1">
								<span class="weui_icon_checked"></span>
							</div>
					</label>
					</div>
					<div ng-if="pagedata.post.status==3" class="weui_cells_title">审核失败说明</div>
					<div ng-if="pagedata.post.status==3" class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary">
							<textarea class="weui_textarea" ng-model="pagedata.post.desc" placeholder="提交一些审核失败说明！" rows="2"></textarea>
						</div>
					</div>
				</div>
				<div class="weui_btn_area">
					<a class="weui_btn weui_btn_primary" style="background:#00c568;" ng-click="post(pagedata.post,'/renwu.itemorder/subdata/')">提交</a>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.tool.get_list('jy_renwushop/renwu.itemorder/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_renwushop/renwu.itemorder/getlist/');
}
</script>